/* Copyright (C) 2010 Luca Piccinelli
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/* 
 * File:   skin_train.h
 * Author: picci
 *
 * Created on December 5, 2010, 3:28 PM
 */

#ifndef SKIN_TRAIN_H
#define	SKIN_TRAIN_H

#include <cv.h>

#include "gestface.h"
#include "machine_learning/statistical_models/normal_bayes_model.h"

namespace NAMESPACE{

enum CVT_SPACE{HLS = CV_BGR2HLS, HSV = CV_BGR2HSV, YCRCB = CV_BGR2YCrCb};

void skin_train_nbayes_from_img( const cv::Mat& src,
                                 const cv::Mat& mask,
                                 NormalBayesModel& model,
                                 CVT_SPACE cvt_space = YCRCB,
                                 bool update = true );

}

#endif	/* SKIN_TRAIN_H */

